package jgl.vajra.management.bean;

import java.util.ArrayList;
import java.util.List;

public class AccountingMethodBean {

    public String title;
    public List<AccountingMethodTypeBean> typeList;

    public AccountingMethodBean(String title, List<AccountingMethodTypeBean> typeList) {
        this.title = title;
        this.typeList = typeList;
    }

    public static class AccountingMethodTypeBean {
        public String title;
        public boolean isDiscount;

        public AccountingMethodTypeBean(String title, boolean isDiscount) {
            this.title = title;
            this.isDiscount = isDiscount;
        }
    }

    public static List<AccountingMethodBean> getListData() {
        List<AccountingMethodBean> listMechanics = new ArrayList<>();

        List<AccountingMethodTypeBean> hourBean = new ArrayList<>();
        hourBean.add(new AccountingMethodTypeBean("1小时", false));
        hourBean.add(new AccountingMethodTypeBean("2小时", false));
        hourBean.add(new AccountingMethodTypeBean("3小时", false));
        hourBean.add(new AccountingMethodTypeBean("4小时", false));
        hourBean.add(new AccountingMethodTypeBean("5小时", false));
        hourBean.add(new AccountingMethodTypeBean("6小时", false));
        hourBean.add(new AccountingMethodTypeBean("7小时", false));

        listMechanics.add(new AccountingMethodBean("小时算账", hourBean));

        List<AccountingMethodTypeBean> taibanBean = new ArrayList<>();
        taibanBean.add(new AccountingMethodTypeBean("1台班", false));
        taibanBean.add(new AccountingMethodTypeBean("2台班", true));
        taibanBean.add(new AccountingMethodTypeBean("3台班", true));
        taibanBean.add(new AccountingMethodTypeBean("4台班", true));
        taibanBean.add(new AccountingMethodTypeBean("5台班", true));
        taibanBean.add(new AccountingMethodTypeBean("6台班", true));
        taibanBean.add(new AccountingMethodTypeBean("7台班", true));
        listMechanics.add(new AccountingMethodBean("台班算账", taibanBean));


        List<AccountingMethodTypeBean> mileageBean = new ArrayList<>();
        mileageBean.add(new AccountingMethodTypeBean("1趟", false));
        mileageBean.add(new AccountingMethodTypeBean("2趟", true));
        mileageBean.add(new AccountingMethodTypeBean("3趟", true));
        mileageBean.add(new AccountingMethodTypeBean("4趟", true));
        mileageBean.add(new AccountingMethodTypeBean("5趟", true));
        mileageBean.add(new AccountingMethodTypeBean("6趟", true));
        mileageBean.add(new AccountingMethodTypeBean("7趟", true));
        listMechanics.add(new AccountingMethodBean("里程算账(每趟)", mileageBean));


        return listMechanics;
    }
}
